﻿@model Doan.Website.Models.LogOnModel
@{
    ViewBag.Title = "LogOn";
    Layout = "~/Views/Shared/_Layout_Logon.cshtml";
}

<div class="form-logon clearfix">
    @if (ViewBag.LogOn != null)
    {
        <div class="alert alert-block fade in alert-error alert-error">
            <a href="#" data-dismiss="alert" class="close">&times;</a>
            @ViewBag.LogOn
        </div>
    }
    @using (Html.BeginForm("LogOn", "Account", FormMethod.Post))
    {
        <legend class="span5">Đăng nhập vào trang quản trị website</legend>
        <div class="box-logon">
            <div class="editor-label ">
                <span>Tên đăng nhập</span>
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UserName)
                @Html.ValidationMessageFor(model => model.UserName)
            </div>
            <div class="editor-label ">
                <span>Mật khẩu</span>
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Password)
                @Html.ValidationMessageFor(model => model.Password)
            </div>
            <div class="btnLogon">
                <input type="submit" value="Đăng nhập"  class="btn btn-success btn-large"/>
                <a href=@Url.Action("ForgotPassword","Account") >Quên mật khẩu</a>
            </div>
        </div>
    }
</div>